package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SafetyExaminationStudentRecordMapper;
import com.ruoyi.system.domain.SafetyExaminationStudentRecord;
import com.ruoyi.system.service.ISafetyExaminationStudentRecordService;

/**
 * 学生记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-07
 */
@Service
public class SafetyExaminationStudentRecordServiceImpl implements ISafetyExaminationStudentRecordService 
{
    @Autowired
    private SafetyExaminationStudentRecordMapper safetyExaminationStudentRecordMapper;

    /**
     * 查询学生记录
     * 
     * @param id 学生记录ID
     * @return 学生记录
     */
    @Override
    public SafetyExaminationStudentRecord selectSafetyExaminationStudentRecordById(Long id)
    {
        return safetyExaminationStudentRecordMapper.selectSafetyExaminationStudentRecordById(id);
    }

    /**
     * 查询学生记录列表
     * 
     * @param safetyExaminationStudentRecord 学生记录
     * @return 学生记录
     */
    @Override
    public List<SafetyExaminationStudentRecord> selectSafetyExaminationStudentRecordList(SafetyExaminationStudentRecord safetyExaminationStudentRecord)
    {
        return safetyExaminationStudentRecordMapper.selectSafetyExaminationStudentRecordList(safetyExaminationStudentRecord);
    }

    /**
     * 新增学生记录
     * 
     * @param safetyExaminationStudentRecord 学生记录
     * @return 结果
     */
    @Override
    public int insertSafetyExaminationStudentRecord(SafetyExaminationStudentRecord safetyExaminationStudentRecord)
    {
        return safetyExaminationStudentRecordMapper.insertSafetyExaminationStudentRecord(safetyExaminationStudentRecord);
    }

    /**
     * 修改学生记录
     * 
     * @param safetyExaminationStudentRecord 学生记录
     * @return 结果
     */
    @Override
    public int updateSafetyExaminationStudentRecord(SafetyExaminationStudentRecord safetyExaminationStudentRecord)
    {
        return safetyExaminationStudentRecordMapper.updateSafetyExaminationStudentRecord(safetyExaminationStudentRecord);
    }

    /**
     * 批量删除学生记录
     * 
     * @param ids 需要删除的学生记录ID
     * @return 结果
     */
    @Override
    public int deleteSafetyExaminationStudentRecordByIds(Long[] ids)
    {
        return safetyExaminationStudentRecordMapper.deleteSafetyExaminationStudentRecordByIds(ids);
    }

    /**
     * 删除学生记录信息
     * 
     * @param id 学生记录ID
     * @return 结果
     */
    @Override
    public int deleteSafetyExaminationStudentRecordById(Long id)
    {
        return safetyExaminationStudentRecordMapper.deleteSafetyExaminationStudentRecordById(id);
    }
}
